package com.generator.service.course.impl;

import com.generator.dao.course.CourseDao;
import com.generator.entity.course.Course;
import com.generator.service.course.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CourseServiceBean implements CourseService {

    @Autowired
    private CourseDao courseDao;
    @Override
    public List<Course> findAllCourses() {
        return courseDao.findAllCourses();
    }
}
